import service from '../utils/request'

export function fetchRecruitInfoList (params) {
  return service({
    url: '/recruit',
    method: 'get',
    params
  })
}

export function fetchRecruitInfoByName (params) {
  return service({
    url: '/recruit',
    method: 'get',
    params
  })
}

export function fetchResumeByRow (params) {
  return service({
    url: '/recruit/get',
    method: 'get',
    params
  })
}

export function addRecruitInfo (data) {
  return service({
    url: '/recruit',
    method: 'post',
    data
  })
}

export function editRecruitInfo (data) {
  return service({
    url: '/recruit',
    method: 'put',
    data
  })
}



export function deleteRecruitInfo (params) {
  return service({
    url: '/recruit',
    method: 'delete',
    params
  })
}

export function passResume (params) {
  return service({
    url: '/recruit/ifPass',
    method: 'get',
    params
  })
}

export function noPassResume (params) {
  return service({
    url: '/recruit/ifPass',
    method: 'get',
    params
  })
}

export function handInResume (data) {
  return service({
    url: '/resume',
    method: 'post',
    data
  })
}
